class Major < ActiveRecord::Base
  belongs_to :department
  has_many :students
  
  #Course Associations
  ##Requirements and Electives
  has_and_belongs_to_many :required_courses,
                          :join_table => 'required_courses',
                          :class_name => 'Course'
  has_and_belongs_to_many :technical_electives,
                          :join_table => 'technical_electives',
                          :class_name => 'Course'
  has_and_belongs_to_many :humanities_electives,
                          :join_table => 'humanities_electives',
                          :class_name => 'Course'
  has_and_belongs_to_many :ss_electives,                        
                          :join_table => 'ss_electives',                       
                          :class_name => 'Course'                       
end
